package com.jzo2o.customer.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jzo2o.customer.model.domain.AgencyCertificationAudit;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.customer.model.domain.WorkerCertificationAudit;
import com.jzo2o.customer.model.dto.request.AgencyCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditPageQueryReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;

/**
* @author lizhijun
* @description 针对表【agency_certification_audit(机构认证审核表)】的数据库操作Service
* @createDate 2025-09-26 16:39:19
*/
public interface IAgencyCertificationAuditService extends IService<AgencyCertificationAudit> {
    /**
     * 分页查询机构认证审核
      * @param pageQueryReqDTO 机构认证审核分页查询参数
     * @return 机构认证审核分页结果
     */
    Page<AgencyCertificationAudit> pageAudit(AgencyCertificationAuditPageQueryReqDTO pageQueryReqDTO);

    /**
     * 获取最新拒绝原因
     * @return
     */
    RejectReasonResDTO getRejectReason();
   /**
     * 机构认证审核
     * @param id 机构id
     * @param certificationStatus 认证状态
     * @param rejectReason 拒绝原因
     */
    void audit(Long id, Integer certificationStatus, String rejectReason);
}
